import { defineAsyncComponent, defineComponent, ref } from 'vue'
import VModelOrModels from '@/views/test/VmodelOrmodels'

const cs = defineComponent({
  components: {
    VModelOrModels: defineAsyncComponent(() => import('./VmodelOrmodels'))
  },
  setup () {
    const val = ref(0)
    const addNum = () => { val.value++ }
    const str = ref('          111             ')
    return () => (
      <div>
        <el-button onClick={addNum}>点击增加</el-button>
        <VModelOrModels v-model={[str.value, 'argument1', ['trim']]}>
        </VModelOrModels>
      </div>
    )
  }
})

export default cs
